{include file='public/header.html'}

<style>
    h1 {font-size: 70px;}
    h1 span {font-size: 20px;}
</style>

<div class="container mtn">

    <div class="panel panel-default">

        <div class="panel-body">
            {if $status==1:}
            <h1 class="text-success">:) <span>{$msg}</span></h1>
            {else:}
            <h1 class="text-danger">:( <span>{$msg}</span></h1>
            {/if}
            <hr />
            <p>
                <a href="__URL__" class="btn btn-success">返回</a>
                <a href="{$url}" class="btn btn-primary">确认</a>
            </p>
        </div>
        <div class="panel-footer">
            页面 <a id="href" href="{$url}">跳转</a> 等待 <b id="wait">10</b> 秒
        </div>
    </div>
</div>

{include file='public/footer.html'}
<script type="text/javascript">
    (function () {
        const wait = document.getElementById('wait');
        const href = document.getElementById('href').href;
        window.setInterval(function() {
            const time = --wait.innerHTML;
            if (time <= 0) {
                location.href = href;
            }
        }, 1000);
    })();
</script>
</body>
</html>